//
//  BaseNavigationViewController.m
//  TabBar框架
//
//  Created by MyMac on 15/9/24.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "BaseNavigationViewController.h"

@interface BaseNavigationViewController ()<UINavigationControllerDelegate>

@end

@implementation BaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.delegate=self;
    
}
//-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
//{
//    [super pushViewController:viewController animated:animated];
//    
//   
//
//    if (viewController!=self.viewControllers[0]) {
//        //self.tabBarController.tabBar.hidden=YES;
//        
//       self.tabBarController.navigationController.navigationBar.hidden=NO;
////        self.navigationBar.hidden=YES;
//        [self.tabBarController.navigationController pushViewController:viewController animated:animated];
//    }
//    
//;
//   
//
//
//
//
//
//}
//-(UIViewController*)popViewControllerAnimated:(BOOL)animated
//{
//    
//    UIViewController*popVC=[self.tabBarController.navigationController popViewControllerAnimated:animated];
// 
// 
//    return popVC;
//    
//}
//
//- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
//{
//    if (viewController==self.viewControllers[0]) {
//        self.tabBarController.navigationController.navigationBar.hidden=YES;
//        self.navigationBar.hidden=NO;
//    }else{
//     self.tabBarController.navigationController.navigationBar.hidden=NO;
//    
//    self.navigationBar.hidden=YES;
//    }
//
//
//}
//- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
//{
//   if (viewController==self.viewControllers[0]) {
//        self.tabBarController.tabBar.hidden=NO;
//    }
//}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}



@end
